package MREngine;

/**
 * This is the entry class.
 * We made it public for user to print the (K, V) pair.
 */
public class MREEntry[K, V]
{
	public def getKey() = key;
	public def getValue() = value;
	public def setValue(v: V)
	{
		value = v;
	}
	val key: K;
	var value: V;
	
	// def this (_key:K){V haszero}
	// {
	// 	this.key = _key;
	// 	this.value = Zero.get[V]();
	// }
	
	def this (_key: K, _value: V)
	{
		this.key = _key;
		this.value = _value;
	}
}